<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Travel Network</title>
        <link rel="stylesheet" href="views/css/bootstrap.min.css" type="text/css" />
        <link rel="stylesheet" href="views/css/bootstrap-fileupload.min.css" type="text/css" />
        <link rel="stylesheet" href="views/css/style.css" type="text/css" />
        <link href="views/css/jquery.mCustomScrollbar.css" rel="stylesheet" type="text/css" /> 
        <link href="views/css/jquery-ui.css" rel="stylesheet" type="text/css" /> 
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="views/css/bootstrap-responsive.css" rel="stylesheet">
        <script type="text/javascript" src="views/js/jquery.js"></script>
        <script type="text/javascript" src="views/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="views/js/bootstrap-fileupload.min.js"></script>
        <script type="text/javascript" src="views/js/mycode.js"></script>
        <script type="text/javascript" src="views/js/jquery-1.9.1.min.js"></script>
        <script type="text/javascript" src="views/js/jquery-ui.js"></script>


        
    </head>
    <body>
        <div id="wrapper">
            <div id="header">
                <div class="container">
                    <div class="logo">
                        <a href="?">
                            <h1 style="margin: 0; padding: 0">
                                <img src="views/images/logo.png" />
                            </h1>
                        </a>
                    </div>
                    <?php if(isset($_SESSION['LOGIN'])): ?>
                    <?php echo "<a href=\"#\" class=\"bt-share\" id=\"bt-share\">
                        <img src=\"views/images/share.png\" />
                        </a>"; ?>
                    <script>
                    $('#bt-share').click(function(e){
                       $.get('?com=content&action=post&view=form', function(data){
                           $('#overlay').html(data);
                           $('#overlay').show();
                       });
                    });
                    </script>
                    <?php endif; ?>
                    <div class="user-menu">
                        <?php global $action; ?>
                        <?php if(!isset($_SESSION['LOGIN'])): ?>
                        <?php if(!in_array($action, array('login', 'register'))): ?>
                        <form class="form-inline" method="post" action="?com=user&action=login">
                            <div class="input-prepend">
                            <span class="add-on"><label for="uname"><i class="icon-user"></i></label></span>
                            <input class="span2 input-small" type="text" id="uname" name="login[username]" placeholder="<?php echo lang('LBL_USERNAME'); ?>">
                            </div>                            
                            <div class="input-prepend">
                                <span class="add-on"><label for="pword"><i class="icon-lock"></i></label></span>
                            <input class="span2 input-small" id="pword" type="password" name="login[password]" placeholder="<?php echo lang('LBL_PASSWORD'); ?>" />
                            </div>
                            <input type="submit" class="btn" value="<?php echo lang('LBL_LOGIN') ?>" name="submit" />
                        </form>
                        <?php endif; ?>
                        <?php else: ?>
                        <ul class="nav nav-pills inline">
                            <li>
                                <a style="padding: 0px" href="?com=user&action=profile&id=<?php echo $_SESSION['UID'] ?>">
                                    <img class="img-circle" src="data/avatars/<?php echo $_SESSION['AVATAR'] ?>" width="32px" height="32px" />
                                </a>
                            </li>
                            <li class="dropdown-wrap">
                                <a class="dropdown-link" href="#"><strong><?php echo $_SESSION['FULLNAME'] ?></strong><b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="#">Tài Khoản</a></li>
                                    <li><a href="?com=user&action=logout">Đăng Xuất</a></li>
                                </ul>
                            </li>
                        </ul>                            
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        <div class="container">
            